#pragma warning(disable:4996)
#pragma warning(disable:6031)

#include "xxx.h"

int main()
{
	{
		HP hp;
		HPInit(&hp);
		int arr[10] = { 5,4,2,1,3,9,6,8,7,0 };
		for (int i = 0; i < 10; i++)
		{
			HPPush(&hp, arr[i]);
		}
		while (!HPEmpty(&hp))
		{
			printf("%d ", hp.arr[0]);
			HPPop(&hp);
		}


		HPDestroy(&hp);
	}
	return 0;
}